from evaluate import load
perplexity = load("/hy-tmp/evaluate/metrics/perplexity", module_type="metric")

results = perplexity.compute(predictions=['太棒了，就是这样','太撕裂了，啊啊就是这样！'], model_id='/hy-tmp/models',batch_size=2,device='cuda')